Skip to content

fix: SonarCloud issues, HTTPS hotspots, and PySide6 bump#104

Merged
JE-Chen merged 1 commit intomainfrom
dev
Apr 25, 2026
Merged

fix: SonarCloud issues, HTTPS hotspots, and PySide6 bump#104
JE-Chen merged 1 commit intomainfrom
dev

Conversation

@JE-Chen
Copy link
Copy Markdown
Member

@JE-Chen JE-Chen commented Apr 25, 2026

Summary

  • Resolve all 6 open SonarCloud issues:
    • package_manager_class.py — concise \w regex with re.ASCII (S6353)
    • change_xml_structure.py — extracted helpers to bring elements_tree_to_dict (18→below 15) and dict_to_elements_tree (32→below 15) under the cognitive complexity ceiling (S3776)
    • test_callback_executor.py — documented the empty _dummy_callback stub (S1186)
    • test_report_generation.py — destructured unused failure_xml into _ (S1481)
  • Resolve all 10 SonarCloud security hotspots: http://https:// for example.com / httpbin.org literals across template_keyword.py and the test fixtures.
  • Carries forward the PySide6 6.10.0 → 6.10.2 bump already on dev.

Test plan

  • pytest test/ — 84 passed
  • SonarCloud re-scan on the merged commit shows 0 open issues / 0 hotspots

- Tighten _VALID_PACKAGE_NAME regex with concise \w class and re.ASCII
  flag (python:S6353).
- Refactor change_xml_structure helpers (elements_tree_to_dict,
  dict_to_elements_tree) into smaller functions to drop cognitive
  complexity below the 15 threshold (python:S3776).
- Document the empty _dummy_callback stub in test_callback_executor
  (python:S1186).
- Drop the unused failure_xml binding in TestGenerateXml.test_success_xml
  by destructuring into _ (python:S1481).
- Switch test fixtures and project templates from http:// to https://
  for example.com / httpbin.org to clear the "Using http protocol is
  insecure" hotspots.
@codacy-production
Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 6 complexity · 0 duplication

Metric Results
Complexity 6
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@sonarqubecloud
Copy link
Copy Markdown

@JE-Chen JE-Chen merged commit f177dbe into main Apr 25, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant